Skip to main content

libURLSetFTPMode

Type

command

Summary

Switches between active and passive mode for FTP transfers.

Syntax

libURLSetFTPMode {"active" | "passive"}

Description

Use the libURLSetFTPMode command to improve performance with FTP servers that require active mode.

For most FTP servers, passive transfer mode will work without a problem. However, a few servers require transfers to be made in active mode. If you are having trouble with ftp commands with a particular server, try setting the mode to "active".

The FTP mode is set to passive when the application starts up. To use active mode exclusively, execute the following statement before making any ftp transfers:

    libURLSetFTPMode \"active\"
Important

The libURLSetFTPMode command is part of the Internet library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "Internet" script library is selected.

Examples

libURLSetFTPMode "passive"
libURLSetFTPMode (the hilitedButtonName of group "Mode")

command: libURLftpUpload, libURLSetFTPStopTime

glossary: command, main stack, handler, message, group, standalone application, Standalone Application Settings, server, application, LiveCode custom library

keyword: ftp

library: Internet library, library

message: startup, openBackground, preOpenStack, openStack, preOpenCard

Compatibility and Support

Introduced

LiveCode 1.1.1

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?